function map(newlist, callback) {
    res = []
    for (var i = 0; i < newlist.length; i++) {
        res.push(callback(newlist[i]))
    }
    return res
}